Update tpo.cc (#643)
authorSRE-babel <71154466+SRE-babel@users.noreply.github.com>
Wed, 13 Oct 2021 15:13:03 +0000 (08:13 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 15:13:03 +0000 (09:13 -0600)
commit0e2f24367a4adc9dfd8e230f5e17ccfd26b9cd2a
treee80059bd832298f10b39ea6501861eea975e6639
parent11d0425136ade7c7b08b2cf091e7a36266a38d7a
Update tpo.cc (#643)

Some .tpo file tracks were/are parsed such that wild jumps occur in lat/lon, creating invalid coords which were not caught by output routines. Some logic flaws and int size errors have been fixed, but some tracks still contain invalid points. Tracks not corrected by this patch now result in warning messages to STDOUT. Entirely valid tracks will also generate warnings if lat or lon changes by a full degree between adjacent track points (should never happen). Non-fatal warning allows manual removal of the few bad track points  in an output format like GPX. Damage is apparently limited to half a dozen incremental points before the next full point, but that can't be guaranteed.

Co-authored-by: tsteven4 <13596209+tsteven4@users.noreply.github.com>
tpo.cc